import request from "@/api/request.js"
import Storage from "@/util/storage.js"
function logClk(data){
	uni.request({
		url:"https://hps.ksii.cn/clk?lp="+data.lp+"&page="+data.pageName+"&type="+data.type,
		method:"GET"
	})
}
function matomo(data){
	data.device = Storage.getDEVICE();
	data.device.page = data.page;
	delete data.page;
	return request({
		url:"/report",
		method:"POST",
		data:data
	})
}

export default {
	logClk,
	matomo
}